package cn.sanli.manage.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**

* @program: award-punish
*
*
*
* @description: TODO
*
* @author: lsk
*
* @version 1.0.0
*
* @since jdk1.8
*
* @create: 2023-12-04 15:52
**/
/**
    * 字段映射表
    */
@ApiModel(description="字段映射表")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dbo.corres")
public class Corres {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="id")
    private Integer id;

    /**
     * 名称
     */
    @TableField(value = "[name]")
    @ApiModelProperty(value="名称")
    private String name;

    /**
     * 父id
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value="父id")
    private Integer parentId;

    /**
     * 创建时间
     */
    @TableField(value = "creat_time")
    @ApiModelProperty(value="创建时间")
    private Date creatTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value="修改时间")
    private Date updateTime;

    @TableField(value = "value")
    @ApiModelProperty(value="分值标准")
    private Double value;

    /**
     * 状态【1：状态正常；2：逻辑删除】
     */
    @TableField(value = "is_delete")
    @ApiModelProperty(value="状态【1：状态正常；2：逻辑删除】")
    private Integer isDelete;

    @ApiModelProperty(value="子节点")
    @TableField(value="children", exist = false)
    private List<Corres> children;

}